package com.youngjun.user.controller.admin;

import com.youngjun.common.mybatis.web.BaseController;
import com.youngjun.common.mybatis.web.Response;
import com.youngjun.user.api.admin.IFunctionInterfaceRestApi;
import com.youngjun.user.pojo.dto.FunctionInterfaceDTO;
import com.youngjun.user.service.FunctionInterfaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/function_interface")
public class FunctionInterfaceController implements IFunctionInterfaceRestApi,BaseController {

    @Autowired
    FunctionInterfaceService functioninterfaceService;

    @Override
    public Response<Void> create(FunctionInterfaceDTO dto) {
        functioninterfaceService.create(dto);
        return new Response<>();
    }

    @Override
    public Response<Void> delete(Long functionId,Long interfaceId) {
        functioninterfaceService.delete(functionId,interfaceId);
        return new Response<>();
    }
}